package com.boot.database.mybatis.plus;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 霜寒 <1621856595@qq.com>
 * @description Model配置
 * @date 2020/9/3 17:35
 **/

@ConfigurationProperties(prefix = "boot.database.autofill")
@Data
public class AutoFillProperties {

    /**
     * @author 霜寒 <1621856595@qq.com>
     * @description 自动填充（不管有没有值）
     * 相关字段需配合 @JsonProperty(access = JsonProperty.Access.READ_ONLY) 使用
     * @date 2020/9/3 22:02
     **/
    public final static Boolean AUTO = true;
    /**
     * @author 霜寒 <1621856595@qq.com>
     * @description 值为 null 时自动填充
     * @date 2020/9/3 22:04
     **/
    public final static Boolean CUSTOM = false;

    private Boolean enable = true;

    private Boolean insertStrategy = AUTO;

    private Boolean updateStrategy = AUTO;

}
